package com.example.mqttdemo;

import com.example.mqttdemo.properties.MqttConfigurationProperties;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@EnableConfigurationProperties(value = MqttConfigurationProperties.class) // 启用配置属性绑定
@EnableTransactionManagement //开启注解方式的事务管理
@SpringBootApplication
public class MqttDemoApplication {

    public static void main(String[] args) {
        SpringApplication.run(MqttDemoApplication.class, args);
        System.out.println("MqttDemoApplication 已启动");
    }

}
